<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // function f1(x, y) {
        //     console.log((x + y) + '=====>' + this);
        //     return 10000;
        // }
        // var num = f1.apply(null, [10, 20])
        // var num2 = f1.call(null, 10, 20)
        // console.log("******")
        // console.log(num)
        // console.log(num2);
        function f1(x,y){
            console.log((x + y) + '=====>' + this.name);
            return 10000;
        }
        var obj = {
            name:'feng',
            age:19
        }
        var num = f1.apply(obj, [10, 20])
        var num2 = f1.call(obj, 10, 20)
        console.log("******")
        console.log(num)
        console.log(num2);
    </script>
</body>

</html>